package com.itany.mapper;

import com.itany.pojo.User;
import com.itany.pojo.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户映射器
 *
 * @author Tom
 * @date 2021/06/26
 */
@Mapper
public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectByUsernameLike(@Param("likeUsername")String likeUsername);

	List<User> selectByUsernameLikeAndFlag(@Param("likeUsername")String likeUsername,@Param("flag")Integer flag);

	List<User> selectByFlag(@Param("flag")Integer flag);

	List<User> selectByAll(User user);






}